//
// Copyright (c) 2024 BPer
//

#include <bperutil/buffer/BPerVideoEncoderBuffer.h>

BPerVideoEncoderBuffer::BPerVideoEncoderBuffer(int pcachenum)
{
	resetIndex();
	m_cache_num=pcachenum;
	initFrames(m_cache_num,BPER_VIDEO_ENCODE_BUFFER_LEN);

}

BPerVideoEncoderBuffer::~BPerVideoEncoderBuffer(void)
{

}


void BPerVideoEncoderBuffer::getEVideo(BPerFrame* pframe){

	getFrame(pframe);
}
uint8_t * BPerVideoEncoderBuffer::getEVideoRef(BPerFrame* frame){
	return getFrameRef(frame);

}
void BPerVideoEncoderBuffer::putEVideo(BPerFrame* pframe){
	putFrame(pframe);
}

